<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BOSS Afterburner: CutFlow.C Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BOSS Afterburner
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('CutFlow_8C_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CutFlow.C</div>  </div>
</div><!--header-->
<div class="contents">
<a href="CutFlow_8C.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="BOSSOutputLoader_8h.html">File/BOSSOutputLoader.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="YamlLoader_8h.html">File/YamlLoader.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="File_8h.html">Functions/File.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PrintTable_8h.html">Functions/PrintTable.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="String_8h.html">Functions/String.h</a>&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="TerminalIO_8h.html">Functions/TerminalIO.h</a>&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;iomanip&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner_1_1File.html">BOSS_Afterburner::File</a>;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner_1_1String.html">BOSS_Afterburner::String</a>;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html">BOSS_Afterburner::TerminalIO</a>;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="group__Afterburner__scripts.html#ga82c3521ec84651b43ae2c3f64011b5a8">   25</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__Afterburner__scripts.html#ga82c3521ec84651b43ae2c3f64011b5a8">CutFlow</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* config_file)</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <a class="code" href="classYamlLoader.html">YamlLoader</a>       conf(config_file);</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp;      filename = conf[<span class="stringliteral">&quot;Input file or directory&quot;</span>];</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  <a class="code" href="classBOSSOutputLoader.html">BOSSOutputLoader</a> file(filename.as&lt;<span class="keywordtype">string</span>&gt;().c_str(), <span class="keyword">false</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <span class="keywordflow">if</span>(conf[<span class="stringliteral">&quot;Print embedded cut flow&quot;</span>].IsDefined() &amp;&amp; conf[<span class="stringliteral">&quot;Print embedded cut flow&quot;</span>].as&lt;<span class="keywordtype">bool</span>&gt;())</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    file.<a class="code" href="classBOSSOutputLoader.html#a0a757c913adfb8b45acdc4da2c1914a5">PrintCuts</a>();</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  <a class="code" href="classTable.html">Table</a>       table;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; cuts = conf[<span class="stringliteral">&quot;Cuts to print&quot;</span>];</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <span class="keywordflow">if</span>(cuts)</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <a class="code" href="classTable.html">Table</a> cutTable = file.PrintCuts(<span class="keyword">false</span>);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span>&amp; row : cutTable.<a class="code" href="classTable.html#ae9a3c5815f07234abeafc7205c29d4fd">GetRows</a>())</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;      <span class="keyword">const</span> <span class="keyword">auto</span>&amp; label = cuts[row.Name];</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;      <span class="keywordflow">if</span>(!label) <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;      <a class="code" href="structTableRow.html">TableRow</a> newrow;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      <span class="keywordflow">if</span>(label.IsDefined())</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a> = label.as&lt;<span class="keywordtype">string</span>&gt;();</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="keywordflow">else</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a> = row.Name;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      newrow.<a class="code" href="structTableRow.html#a4ca883cfa2d1f16a920bbab4fe21991d">SortValue</a> = row.SortValue;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a>);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(row.LastCell());</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      table.<a class="code" href="classTable.html#ae3957828a47b7816ed09d6a309ca9afd">AddRow</a>(newrow);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  }</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; tree  = conf[<span class="stringliteral">&quot;Tree name&quot;</span>];</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; extra = conf[<span class="stringliteral">&quot;Extra cuts&quot;</span>];</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordflow">if</span>(tree.IsDefined() &amp;&amp; extra.IsDefined() &amp;&amp; extra.IsSequence())</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  {</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    TString treeName = tree.as&lt;<span class="keywordtype">string</span>&gt;().c_str();</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span>&amp; item : extra)</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      <span class="keyword">auto</span> hist = file.Draw(treeName, item);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      <a class="code" href="structTableRow.html">TableRow</a>    newrow;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      <span class="keyword">const</span> <span class="keyword">auto</span>&amp; label = item[<span class="stringliteral">&quot;label&quot;</span>];</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;      <span class="keywordflow">if</span>(label.IsDefined())</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a> = label.as&lt;<span class="keywordtype">string</span>&gt;();</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      <span class="keywordflow">else</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a> = hist-&gt;GetName();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;      newrow.<a class="code" href="structTableRow.html#a4ca883cfa2d1f16a920bbab4fe21991d">SortValue</a> = hist-&gt;GetEntries();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(newrow.<a class="code" href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">Name</a>);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(<a class="code" href="namespaceBOSS__Afterburner_1_1String.html#ab949c7d6d53fd9f32649c54cdc12f1ad">CommaFormattedString</a>(hist-&gt;GetEntries()));</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      table.<a class="code" href="classTable.html#ae3957828a47b7816ed09d6a309ca9afd">AddRow</a>(newrow);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  table.<a class="code" href="classTable.html#a1f534873c0ea47d2838ebd2e4ea97326">Sort</a>();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; writeperc     = conf[<span class="stringliteral">&quot;Compute percentages&quot;</span>];</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keywordtype">bool</span>        writepercbool = writeperc.IsDefined() &amp;&amp; writeperc.as&lt;<span class="keywordtype">bool</span>&gt;();</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="keywordflow">if</span>(writepercbool)</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  {</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="classTable.html">Table</a>    newtable;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    Double_t firstval = table[0].SortValue;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    Double_t previous = firstval;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordtype">size_t</span>   i        = 0;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span>&amp; row : table.<a class="code" href="classTable.html#ae9a3c5815f07234abeafc7205c29d4fd">GetRows</a>())</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;      <a class="code" href="structTableRow.html">TableRow</a> newrow;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(row[0]);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>(row[1]);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;      TString entry = row[1].c_str();</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;      entry.ReplaceAll(<span class="stringliteral">&quot;,&quot;</span>, <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;      Double_t val      = entry.Atof();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      Double_t absratio = val / firstval * 100.;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;      Double_t relratio = val / previous * 100.;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;      previous          = val;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;      newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>((<span class="keywordtype">string</span>)Form(<span class="stringliteral">&quot;%.3g \\%%&quot;</span>, absratio));</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;      <span class="keywordflow">if</span>(i)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>((<span class="keywordtype">string</span>)Form(<span class="stringliteral">&quot;%.3g \\%%&quot;</span>, relratio));</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;      <span class="keywordflow">else</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        newrow.<a class="code" href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">AddCell</a>((<span class="keywordtype">string</span>) <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;      newtable.<a class="code" href="classTable.html#ae3957828a47b7816ed09d6a309ca9afd">AddRow</a>(newrow);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;      ++i;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    table = newtable;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  }</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <span class="keywordflow">if</span>(writepercbool)</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  {</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    table.<a class="code" href="classTable.html#ac90e7a1bf7e0698ef4a972c919f24c11">SetHeader</a>({<span class="stringliteral">&quot;Cut&quot;</span>, <span class="stringliteral">&quot;Number of events&quot;</span>, <span class="stringliteral">&quot;Absolute&quot;</span>, <span class="stringliteral">&quot;Relative&quot;</span>});</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    table.<a class="code" href="classTable.html#a3f36c6ea8c14429e5568b07baf7d35c0">SetAlign</a>({<a class="code" href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efa2f82cebc495fe0fff44231bf23b0f338">TableColumn::Left</a>, <a class="code" href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efaeae60c752044afe4b126bf7a06117499">TableColumn::Right</a>, <a class="code" href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efaeae60c752044afe4b126bf7a06117499">TableColumn::Right</a>, TableColumn::Right});</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  }</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  {</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    table.<a class="code" href="classTable.html#ac90e7a1bf7e0698ef4a972c919f24c11">SetHeader</a>({<span class="stringliteral">&quot;Cut&quot;</span>, <span class="stringliteral">&quot;Number of events&quot;</span>});</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    table.<a class="code" href="classTable.html#a3f36c6ea8c14429e5568b07baf7d35c0">SetAlign</a>({<a class="code" href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efa2f82cebc495fe0fff44231bf23b0f338">TableColumn::Left</a>, <a class="code" href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efaeae60c752044afe4b126bf7a06117499">TableColumn::Right</a>});</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  table.<a class="code" href="classTable.html#ae3de0942544bcda38e54ccbd9429d29c">Print</a>();</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  table.<a class="code" href="classTable.html#aab93cdb0d46c55944c4f5ddf7e4d8383">WriteLaTeX</a>(<a class="code" href="namespaceBOSS__Afterburner_1_1File.html#a63b29ac0116fe7f1815a29a647bde2d6">SetOutputFilename</a>(<span class="stringliteral">&quot;Cutflow&quot;</span>, <span class="stringliteral">&quot;tex&quot;</span>));</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  table.<a class="code" href="classTable.html#aba82f179c8e58873a8a169b7f5e6d04a">Write</a>(<a class="code" href="namespaceBOSS__Afterburner_1_1File.html#a63b29ac0116fe7f1815a29a647bde2d6">SetOutputFilename</a>(<span class="stringliteral">&quot;Cutflow&quot;</span>, <span class="stringliteral">&quot;txt&quot;</span>));</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;}</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="CutFlow_8C.html#a0ddf1224851353fc92bfbff6f499fa97">  141</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="CutFlow_8C.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>* argv[])</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;{</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a5b35019e4f74baaa75cd1f5de2a97fb7">CheckMainArguments</a>(argc, argv, 1);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  <a class="code" href="group__Afterburner__scripts.html#ga82c3521ec84651b43ae2c3f64011b5a8">CutFlow</a>(argv[1]);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;}</div><div class="ttc" id="classTable_html_aba82f179c8e58873a8a169b7f5e6d04a"><div class="ttname"><a href="classTable.html#aba82f179c8e58873a8a169b7f5e6d04a">Table::Write</a></div><div class="ttdeci">void Write(const std::string &amp;filename, const char *delim=&quot;\) const</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00146">PrintTable.cxx:146</a></div></div>
<div class="ttc" id="classTable_html_a1f534873c0ea47d2838ebd2e4ea97326"><div class="ttname"><a href="classTable.html#a1f534873c0ea47d2838ebd2e4ea97326">Table::Sort</a></div><div class="ttdeci">void Sort()</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00031">PrintTable.cxx:31</a></div></div>
<div class="ttc" id="structTableColumn_html_af55c7630d082b9ea35b448113f5581efaeae60c752044afe4b126bf7a06117499"><div class="ttname"><a href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efaeae60c752044afe4b126bf7a06117499">TableColumn::Right</a></div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00019">PrintTable.h:19</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="CutFlow_8C_html_a0ddf1224851353fc92bfbff6f499fa97"><div class="ttname"><a href="CutFlow_8C.html#a0ddf1224851353fc92bfbff6f499fa97">main</a></div><div class="ttdeci">int main(int argc, char *argv[])</div><div class="ttdef"><b>Definition:</b> <a href="CutFlow_8C_source.html#l00141">CutFlow.C:141</a></div></div>
<div class="ttc" id="classTable_html_a3f36c6ea8c14429e5568b07baf7d35c0"><div class="ttname"><a href="classTable.html#a3f36c6ea8c14429e5568b07baf7d35c0">Table::SetAlign</a></div><div class="ttdeci">void SetAlign(std::vector&lt; TableColumn::EAlign &gt; v)</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00043">PrintTable.cxx:43</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1File_html_a63b29ac0116fe7f1815a29a647bde2d6"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1File.html#a63b29ac0116fe7f1815a29a647bde2d6">BOSS_Afterburner::File::SetOutputFilename</a></div><div class="ttdeci">const char * SetOutputFilename(const char *filenameWithoutExt, const char *ext=nullptr)</div><div class="ttdoc">This function creates a file name from the settings in FrameworkSettings.h and from the file name (wi...</div><div class="ttdef"><b>Definition:</b> <a href="File_8cxx_source.html#l00021">File.cxx:21</a></div></div>
<div class="ttc" id="File_8h_html"><div class="ttname"><a href="File_8h.html">File.h</a></div></div>
<div class="ttc" id="classTable_html_ae9a3c5815f07234abeafc7205c29d4fd"><div class="ttname"><a href="classTable.html#ae9a3c5815f07234abeafc7205c29d4fd">Table::GetRows</a></div><div class="ttdeci">const std::list&lt; TableRow &gt; &amp; GetRows() const</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00070">PrintTable.h:70</a></div></div>
<div class="ttc" id="structTableColumn_html_af55c7630d082b9ea35b448113f5581efa2f82cebc495fe0fff44231bf23b0f338"><div class="ttname"><a href="structTableColumn.html#af55c7630d082b9ea35b448113f5581efa2f82cebc495fe0fff44231bf23b0f338">TableColumn::Left</a></div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00018">PrintTable.h:18</a></div></div>
<div class="ttc" id="YamlLoader_8h_html"><div class="ttname"><a href="YamlLoader_8h.html">YamlLoader.h</a></div></div>
<div class="ttc" id="group__Afterburner__scripts_html_ga82c3521ec84651b43ae2c3f64011b5a8"><div class="ttname"><a href="group__Afterburner__scripts.html#ga82c3521ec84651b43ae2c3f64011b5a8">CutFlow</a></div><div class="ttdeci">void CutFlow(const char *config_file)</div><div class="ttdoc">Print indications for cut flow. </div><div class="ttdef"><b>Definition:</b> <a href="CutFlow_8C_source.html#l00025">CutFlow.C:25</a></div></div>
<div class="ttc" id="classTable_html_ac90e7a1bf7e0698ef4a972c919f24c11"><div class="ttname"><a href="classTable.html#ac90e7a1bf7e0698ef4a972c919f24c11">Table::SetHeader</a></div><div class="ttdeci">void SetHeader(std::vector&lt; std::string &gt; v)</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00049">PrintTable.cxx:49</a></div></div>
<div class="ttc" id="PrintTable_8h_html"><div class="ttname"><a href="PrintTable_8h.html">PrintTable.h</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1File_html"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1File.html">BOSS_Afterburner::File</a></div><div class="ttdef"><b>Definition:</b> <a href="File_8h_source.html#l00010">File.h:10</a></div></div>
<div class="ttc" id="structTableRow_html"><div class="ttname"><a href="structTableRow.html">TableRow</a></div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00026">PrintTable.h:26</a></div></div>
<div class="ttc" id="classTable_html_ae3de0942544bcda38e54ccbd9429d29c"><div class="ttname"><a href="classTable.html#ae3de0942544bcda38e54ccbd9429d29c">Table::Print</a></div><div class="ttdeci">void Print() const</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00064">PrintTable.cxx:64</a></div></div>
<div class="ttc" id="TerminalIO_8h_html"><div class="ttname"><a href="TerminalIO_8h.html">TerminalIO.h</a></div></div>
<div class="ttc" id="classTable_html_aab93cdb0d46c55944c4f5ddf7e4d8383"><div class="ttname"><a href="classTable.html#aab93cdb0d46c55944c4f5ddf7e4d8383">Table::WriteLaTeX</a></div><div class="ttdeci">void WriteLaTeX(const std::string &amp;filename) const</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00113">PrintTable.cxx:113</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html_a0a757c913adfb8b45acdc4da2c1914a5"><div class="ttname"><a href="classBOSSOutputLoader.html#a0a757c913adfb8b45acdc4da2c1914a5">BOSSOutputLoader::PrintCuts</a></div><div class="ttdeci">Table PrintCuts(bool print=true)</div><div class="ttdoc">This function creates a list of TableEntrys from the &quot;_cutvalues&quot; branch which is then printed...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8cxx_source.html#l00185">BOSSOutputLoader.cxx:185</a></div></div>
<div class="ttc" id="classTable_html_ae3957828a47b7816ed09d6a309ca9afd"><div class="ttname"><a href="classTable.html#ae3957828a47b7816ed09d6a309ca9afd">Table::AddRow</a></div><div class="ttdeci">void AddRow(const TableRow &amp;row)</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8cxx_source.html#l00235">PrintTable.cxx:235</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html">BOSS_Afterburner::TerminalIO</a></div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8h_source.html#l00015">TerminalIO.h:15</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html_a5b35019e4f74baaa75cd1f5de2a97fb7"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a5b35019e4f74baaa75cd1f5de2a97fb7">BOSS_Afterburner::TerminalIO::CheckMainArguments</a></div><div class="ttdeci">void CheckMainArguments(int argc, char *argv[], int required=1)</div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8cxx_source.html#l00013">TerminalIO.cxx:13</a></div></div>
<div class="ttc" id="structTableRow_html_a48e5b2e0115be572f0ac38dc5b286b70"><div class="ttname"><a href="structTableRow.html#a48e5b2e0115be572f0ac38dc5b286b70">TableRow::AddCell</a></div><div class="ttdeci">void AddCell(T val)</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00082">PrintTable.h:82</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1String_html_ab949c7d6d53fd9f32649c54cdc12f1ad"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1String.html#ab949c7d6d53fd9f32649c54cdc12f1ad">BOSS_Afterburner::String::CommaFormattedString</a></div><div class="ttdeci">std::string CommaFormattedString(TYPE number)</div><div class="ttdoc">Create a string from a number that has a number between each 3 digits. </div><div class="ttdef"><b>Definition:</b> <a href="String_8h_source.html#l00034">String.h:34</a></div></div>
<div class="ttc" id="classTable_html"><div class="ttname"><a href="classTable.html">Table</a></div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00052">PrintTable.h:52</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1String_html"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1String.html">BOSS_Afterburner::String</a></div><div class="ttdef"><b>Definition:</b> <a href="String_8h_source.html#l00015">String.h:15</a></div></div>
<div class="ttc" id="structTableRow_html_a4ca883cfa2d1f16a920bbab4fe21991d"><div class="ttname"><a href="structTableRow.html#a4ca883cfa2d1f16a920bbab4fe21991d">TableRow::SortValue</a></div><div class="ttdeci">Long64_t SortValue</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00029">PrintTable.h:29</a></div></div>
<div class="ttc" id="classBOSSOutputLoader_html"><div class="ttname"><a href="classBOSSOutputLoader.html">BOSSOutputLoader</a></div><div class="ttdoc">General container for BOSS analysis output This object only needs a path of a directory containin ROO...</div><div class="ttdef"><b>Definition:</b> <a href="BOSSOutputLoader_8h_source.html#l00023">BOSSOutputLoader.h:23</a></div></div>
<div class="ttc" id="BOSSOutputLoader_8h_html"><div class="ttname"><a href="BOSSOutputLoader_8h.html">BOSSOutputLoader.h</a></div></div>
<div class="ttc" id="String_8h_html"><div class="ttname"><a href="String_8h.html">String.h</a></div></div>
<div class="ttc" id="structTableRow_html_a700b1f6632cd02a6246dc58eca1ebf1f"><div class="ttname"><a href="structTableRow.html#a700b1f6632cd02a6246dc58eca1ebf1f">TableRow::Name</a></div><div class="ttdeci">std::string Name</div><div class="ttdef"><b>Definition:</b> <a href="PrintTable_8h_source.html#l00030">PrintTable.h:30</a></div></div>
<div class="ttc" id="classYamlLoader_html"><div class="ttname"><a href="classYamlLoader.html">YamlLoader</a></div><div class="ttdef"><b>Definition:</b> <a href="YamlLoader_8h_source.html#l00014">YamlLoader.h:14</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_53e6fa9553ac22a5646d2a2b2d7b97a1.html">scripts</a></li><li class="navelem"><a class="el" href="CutFlow_8C.html">CutFlow.C</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
